package com.syp.lease.web.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.syp.lease.model.entity.RoomInfo;
import com.syp.lease.web.admin.vo.room.RoomDetailVo;
import com.syp.lease.web.admin.vo.room.RoomItemVo;
import com.syp.lease.web.admin.vo.room.RoomQueryVo;
import com.syp.lease.web.admin.vo.room.RoomSubmitVo;
import org.springframework.transaction.annotation.Transactional;


public interface RoomInfoService extends IService<RoomInfo> {

    void saveOrUpdateRoom(RoomSubmitVo roomSubmitVo);

    IPage<RoomItemVo> pageRoomItemByQuery(IPage<RoomItemVo> page, RoomQueryVo queryVo);

    RoomDetailVo getRoomDetailById(Long id);

    @Transactional
    void removeRoomById(Long id);
}
